$.extend({
    ajaxFormat:function(obj){
    	obj.dataType=typeof(obj.dataType)=='undefined'?'':obj.dataType;
    	obj.async=typeof(obj.async)=='undefined'?true:obj.async;
    	obj.error=typeof(obj.error)=='undefined'?'':obj.error;
    	var sessionId = window.sessionStorage.getItem('sessionId') ? window.sessionStorage.getItem('sessionId') : '';
    	$.ajax({ 
    		url : obj.url,
     		type: obj.type,
     		data: JSON.stringify(obj.data),
    		dataType:obj.dataType,
    		contentType:"application/json; charset=utf-8",
    		async:obj.async,
    		success: obj.success,
    		error:obj.error,
    		beforeSend:function(request) {
                request.setRequestHeader("session_id", sessionId);
            },
    	});
    }
});
function getNotNullVal(input) {

	if (input == undefined || input == null || input.length == 0
			|| input == 'undefined') {
		input = "";
	}
	return input;

}